﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tel_list.aspx.cs" Inherits="HY.WEB.OA._tel_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
 <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2"  />


  <ext:Panel ID="Panel2" runat="server" Height="250px"  AutoWidth="true" ShowBorder="True"
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="员工电话记录清单">
     
        <Items>

        <ext:Panel ID="Panel1" Title="查询" EnableBackgroundColor="true" Width="300px" runat="server"   BoxFlex="1" 
                BodyPadding="5px" ShowBorder="true" ShowHeader="true">
           
                <Items>
                    <ext:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"  ShowHeader="false" >
                        <Items>
               <ext:DropDownList ID="ddlcomp" runat="server" Label="选择企业">  </ext:DropDownList>  
                            <ext:TextBox ID="txtcomp" runat="server" Label="企业名称" Text="">
                            </ext:TextBox>
               <ext:DropDownList ID="ddlperson" runat="server" Label="选择员工">  </ext:DropDownList>  
            
          <ext:DatePicker runat="server" Label="通话日期" EmptyText="请选择查询日期"   ID="date1"   DateFormatString="yyyy-M-d"  />
            <ext:DatePicker runat="server" Label="通话日期" EmptyText="请选择查询日期"   ID="date2"   DateFormatString="yyyy-M-d"  />
         <ext:DropDownList ID="ddltype" runat="server" Label="选择类型">
         <ext:ListItem Text="企业" Value="CP" />
         <ext:ListItem Text="中介" Value="ZJ" />
         <ext:ListItem Text="学校" Value="SO" />
          <ext:ListItem Text=" " Value=" " Selected="true" />
           </ext:DropDownList>  

           <ext:Button ID="btsearch" runat="server" Text="查询" OnClick="btsearch_Click">
             </ext:Button>

                  </Items>
                    </ext:SimpleForm>

           </Items>
            </ext:Panel>           
             
     
            <ext:Grid ID="Grid2" Title="单据列表"  Width="810px"    PageSize="15" ShowBorder="true" 
                ShowHeader="true" AutoHeight="true" AllowPaging="true" AllowSorting="true" 
        runat="server" AutoScroll="true"   DataKeyNames="sid,bh"  AutoPostBack="true"  
        OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" onrowcommand="Grid2_RowCommand" 
                OnSort="Grid2_Sort"  AnchorValue="100% -36px" >
       <Columns>
          
                  <ext:HyperLinkField  Width="180px"   DataToolTipField="cname" DataTextField="cname"  SortField="cname" HeaderText="企业名称" 
            DataNavigateUrlFields="cbh" DataNavigateUrlFormatString="../sales/comp_view_job.aspx?cbh={0}" DataNavigateUrlFieldsEncode="true"   Target="_blank" />
                 <ext:WindowField ColumnID="myWindowField2" Width="120px" WindowID="Window2" DataTextField="tel" HeaderText="电话号码" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="../sales/tel_view.aspx?sid={0}" DataWindowTitleField="tel"
                DataWindowTitleFormatString="查看电话记录 - {0}" />

                <ext:BoundField Width="80px" DataField="pname" HeaderText="业务员"  SortField="pname" />
           
                      <ext:BoundField Width="100px" DataField="person" HeaderText="联系人" SortField="person"  />
                            <ext:TemplateField Width="160px"  HeaderText="电话内容" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Server.HtmlDecode(Eval("pmemo").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
                     <ext:BoundField Width="100px" DataField="pdtime" HeaderText="通话时间" DataFormatString="{0:yyyy-MM-dd}" SortField="pdtime"  />   
                           <ext:BoundField Width="100px" DataField="sdtime" HeaderText="系统记时" SortField="sdtime"  />
        </Columns>
    </ext:Grid> 
     
        </Items>
    </ext:Panel>

      <ext:Window ID="Window2" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="750px" Height="309px">
    </ext:Window>
    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
